/**
 * Copyright (c) 2011 Tomi Paananen.
 *
 * Part of Quick Gestures engine library.
 */

#ifndef GESTUREDATAHELPER_H
#define GESTUREDATAHELPER_H

// qgengine includes
#include "gesture.h"
#include "qgenginepriv.h"


class QGLIB_EXPORT GestureDataHelper
{
public:
    explicit GestureDataHelper();
    explicit GestureDataHelper(const Gesture &gesture);
    ~GestureDataHelper();

public:
    void setGesture(const Gesture &gesture);
    int pointCount();
    int minX();
    int minY();
    int maxX();
    int maxY();
    int greaterSideLength();

private:
    void extractValues(const Gesture &gesture);

private: // Data
    int m_pointCount;
    int m_minX;
    int m_minY;
    int m_maxX;
    int m_maxY;
    int m_greaterSideLength;
};


#endif // GESTUREDATAHELPER_H

// End of file.
